module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  const Ads = app.model.define('ads', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    title: { type: STRING, allowNull: false },
    type: STRING,
    href: STRING,
    img: STRING,
    status: { type: INTEGER, defaultValue: 1 },
    del_flag: { type: INTEGER, defaultValue: 0 },
    created_at: DATE,
    updated_at: DATE,
  });

  return Ads;
}; 